package com.example.mannortycoon.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mannortycoon.entity.UserPointingEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.Date;

@Mapper
public interface UserPointingDao extends BaseMapper<UserPointingEntity> {

    @Update("update user_pointing " +
            "set seed_id = null,point_time = null," +
            "update_time = #{updateTime} " +
            "where id = #{id}")
    void endPointing(@Param("id") Long id,@Param("updateTime") Date updateTime);
}
